package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.system.domain.DigitizationProgress;
import com.ruoyi.system.mapper.DigitizationProgressMapper;
import com.ruoyi.system.service.DigitizationProgressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 数字化进度Service实现类
 *
 * @author admin
 * @date 2025-08-23
 */
@Service
public class DigitizationProgressServiceImpl implements DigitizationProgressService {
    @Autowired
    private DigitizationProgressMapper digitizationProgressMapper;

    @Override
    public DigitizationProgress selectDigitizationProgressById(Long id) {
        return digitizationProgressMapper.selectDigitizationProgressById(id);
    }

    @Override
    public List<DigitizationProgress> selectDigitizationProgressList(DigitizationProgress digitizationProgress) {
        return digitizationProgressMapper.selectDigitizationProgressList(digitizationProgress);
    }

    @Override
    public int insertDigitizationProgress(DigitizationProgress digitizationProgress) {
        return digitizationProgressMapper.insertDigitizationProgress(digitizationProgress);
    }

    @Override
    public List<Map<String, Object>> selectListByName(DigitizationProgress digitizationProgress) {
        return digitizationProgressMapper.selectListByName(digitizationProgress);
    }

    @Override
    public int updateDigitizationProgress(DigitizationProgress digitizationProgress) {
        return digitizationProgressMapper.updateDigitizationProgress(digitizationProgress);
    }

    @Override
    public int deleteDigitizationProgressById(Long id) {
        return digitizationProgressMapper.deleteDigitizationProgressById(id);
    }

    @Override
    public int deleteDigitizationProgressByIds(Long[] ids) {
        return digitizationProgressMapper.deleteDigitizationProgressByIds(ids);
    }
}